home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12792 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.mitre.org!usenet
  2. From: Chris Irwin <cirwin@mitretek.org>
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: socket problem ...
  5. Date: Thu, 21 Mar 1996 11:19:48 -0500
  6. Organization: Mitretek Systems
  7. Message-ID: <315181A4.7266@mitretek.org>
  8. NNTP-Posting-Host: m23266-pc.mitre.org
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  13.  
  14. I have a server daemon process that is leaving the socket bound upon 
  15. exiting. It is actually a C++ program using the socket++-1.10 class 
  16. library but uses the usual socket library calls. When I kill the server 
  17. and try to restart it, it seems that the port is still in use. Basically 
  18. the server does a fork() after the accept(). THe parent process closes 
  19. the new socket and the child process closes the original socket does its 
  20. thing and then exit() s. Any help would be greatly appreciated.
  21.  
  22. Thanks in advance
  23. -- 
  24. Christopher S. Irwin
  25. Information Systems Directorate        Email: cirwin@mitretek.org
  26. Mitretek Systems            Phone: (703)610-1920
  27. 7525 Colshire Drive    
  28. McLean, Virginia 22102-3481
  29.